home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19951130-19960209 / 000020_news@columbia.edu_Sat Dec 2 16:33:14 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  6KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA25327
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun>); Sun, 3 Dec 1995 20:33:53 -0500
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.6.12/8.6.12) id UAA02641 for kermit.misc@watsun; Sun, 3 Dec 1995 20:33:50 -0500
  4. Path: news.columbia.edu!news.cs.columbia.edu!pipeline!psinntp!psinntp!howland.reston.ans.net!agate!dog.ee.lbl.gov!news.cs.utah.edu!cc.usu.edu!jrd
  5. From: jrd@cc.usu.edu (Joe Doupnik)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: Downloading a file directly from the host's Web-browser
  8. Message-Id: <1995Dec2.223314.68564@cc.usu.edu>
  9. Date: 2 Dec 95 22:33:14 MDT
  10. References: <3DEC95.04190434@meena.cc.uregina.ca>
  11. Organization: Utah State University
  12. Lines: 80
  13. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  14.  
  15. In article <3DEC95.04190434@meena.cc.uregina.ca>, vogt12@meena.cc.uregina.ca writes:
  16. > A few years ago I bought MS-Kermit 3.0 complete with the book "Using MS-DOS
  17. > Kermit", first edition, 1990. I use it to connect with DEC & IBM mainframes and
  18. > I only run DOS 3.3; so that after I created some "take" files with ample defi-
  19. > nitions for DEC VT & IBM 3270 special keys (I still don't know all of 'em!),
  20. > this version of Kermit has always met all my needs. Until now:
  21. >         One of two VT-type Web-browsers on the VMS-running VAX here goes by the
  22. > name of "VTWWW". This is its name as defined in a DCL global symbol. Its real
  23. > name may be something else. Any guesses? That symbol disappeared yesterday, and
  24. > I might find this Web-browser's directory if I know its real name. Unlike Lynx,
  25. > it uses typed numbers instead of the right-arrow key to follow a link. Anyway,
  26. > it has a very convenient feature provided your Kermit is new enough to exploit
  27. > it. (Mine isn't.) It gives you the option of printing via CKermit the current
  28. > file on your PC's printer. You don't have to do anything to make this happen!
  29. > It just happens, and the screen continues to display the host session. Further-
  30. > more, if you escape and issue "SET PRINTER file.nam" to the local Kermit, the
  31. > Web-browser's file will go to a DOS file instead of to PRN.
  32. >         But my 3.0 Kermit lacks the SET PRINTER feature. To get around this, I
  33. > installed a TSR, "VPRINT.COM", that hooks Print BIOS Int 17h to redirect print
  34. > jobs to a disk file. Then with Kermit going, I asked VTWWW to "print" an .html
  35. > to my PC. It worked; the .html appeared on my DOS disk as a text file, spaced
  36. > like the original but with no mark-up stuff in it. So far fine. But when I went
  37. > back and tried to bring down a *binary* .ZIP file this way, the job was termi-
  38. > nated after a few (dozen) characters. The incomplete file that turned up on my
  39. > PC when typed looked as it did when it was displayed by the Web-browser on the
  40. > host.
  41. >         I eliminated VPRINT.COM as the cause of the problem. It definitely can
  42. > handle binary files without modifying them in the smallest way if so requested.
  43. > I also compared the short corrupted binary file received with an intact copy.
  44. > The damage is extensive, but I noticed one thing: the printing Kermits change
  45. > nulls (ASCII 0) into CR/LF's (etc). So I tried an experiment: I set the VAX's
  46. > term to "/DEV=UNKNOWN /NOANSI" and the PC's term type to "NONE". The attempt
  47. > failed exactly as before.
  48. >         Reading a newer version of KERMIT.HLP, I think I know how VTWWW initi-
  49. > ates the output to PRN: by issuing the sequence ESC [ ? i 5 to start printing
  50. > and ESC [ ? i 4 to stop. But these are for line-by-line or text-mode printing.
  51. > For binary-mode printing of all characters, the sequences are ESC [ i 5 and
  52. > ESC i 4. Note the absence of the the "?"
  53. >         Do you agree with me that the VTWWW program on the VAX was not set up
  54. > to issue the second control pair and was not even able perhaps to tell a binary
  55. > file from a text one? Or does the problem lie elsewhere, like in a Kermit quirk
  56. > that can only be solved by upgrading from version 3.0 to 3.14?
  57. >         And what is the real name for the VMS Web-browser whose alias is apt to
  58. > be "VTWWW"? Your answers to these questions will be highly appreciated, and
  59. > when I succeed in solving this problem I'll tell you how I did it with your help
  60. >                                                 Yours truly,    Warren
  61. ---------------
  62.     CSI ? i 4/5 is definitely the wrong way of printing binary information.
  63. That is DEC's "controller" printing described below. The proper way is 
  64. "transparent" printing CSI i 4/5, also described below. Controller printing
  65. outputs only what you see on the screen, minus all cursor steering and
  66. other material on the comms line, and thus it is text-only. Transparent
  67. printing is suitable for binary information.
  68.     MSK v3.00 is very long in the tooth and I recommend you upgrade to
  69. the current MSK v3.14. It's available by anonymous ftp to kermit.columbia.edu,
  70. cd kermit/msdos, binary file msvibm.zip is the quick-start kit. Many more
  71. features are present in 3.14.
  72.     Here's the printing detail, from file msvibm.vt.
  73.  
  74.  CSI Pn i    MC        Printer controls (Media Copy)
  75.             Pn    
  76.             0    Print whole Screen
  77.             4    Exit printer controller (transparent print)
  78.             5    Enter printer controller (transparent print)
  79.  
  80. Transparent printing sends all output, except the CSI 4 i termination string,
  81. to the printer and not the screen, uses an 8-bit channel if no parity so NUL
  82. and DEL will be seen by the printer and by the termination recognizer code,
  83. and all translation and character set selections are bypassed.
  84.  
  85.  CSI ? Pn i    MC        DEC Printer controls (Media Copy)
  86.             Pn
  87.             1    Print line containing cursor
  88.             4    Exit autoprint (stop echoing to printer)
  89.             5    Enter autoprint (echo screen chars to printer)
  90.  
  91. Autoprint prints a final display line only when the cursor is moved off the
  92. line by an autowrap or LF, FF,    or VT (otherwise do not print the line).
  93.  
  94.     Joe D.